package com.pzhu.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName o_rder
 */
@TableName(value = "o_rder")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ORder implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单号
     */
    private Long orderNo;

    /**
     * 商品
     */
    private String goods;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 用户id
     */
    private Integer userId;
    @TableField(exist = false)
    private String user;
    @TableField(exist = false)
    private String businessName;


    /**
     * 大小
     */


    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 订单时间
     */

    @DateTimeFormat(style = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;

    /**
     *
     */
    private Integer businessId;


    private Integer status;
    private Integer type;

    @TableLogic
    private Integer del;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
